export class LoginReq {
    constructor(userAccount='', userPassword='') {
        this.userAccount = userAccount
        this.userPassword = userPassword
    }
    setUserAccount(userAccount) {
        this.userAccount = userAccount
    }
    setUserPassword(userPassword) {
        this.userPassword = userPassword
    }
    getUserAccount() {
        return this.userAccount
    }
    getUserPassword() {
        return this.userPassword
    }    
};

export class LoginRes {
    constructor(token='', userAccount='', role='') {
        this.token = token
        this.userAccount = userAccount
        this.role = role
    }
    setToken(token) {
        this.token = token
    }
    setUserAccount(userAccount) {
        this.userAccount = userAccount
    }
    setRole(role) {
        this.role = role
    }
    getToken() {
        return this.token
    }
    getUserAccount() {
        return this.userAccount
    }
    getRole() {
        return this.role
    }
};

